export const SOURCE_0: string = "0" as const
export const SOURCE_1: string = "1" as const
export const TYPE_MAP = {
  [SOURCE_0]: "采购",
  [SOURCE_1]: "退货"
}

export const TYPE_OPTIONS = [
  {
    value: SOURCE_0,
    label: TYPE_MAP[SOURCE_0]
  },
  {
    value: SOURCE_1,
    label: TYPE_MAP[SOURCE_1]
  }
]

export const REBATE_0: string = "0" as const
export const REBATE_1: string = "1" as const
export const REBATE_MAP = {
  [REBATE_0]: "否",
  [REBATE_1]: "是"
}

export const REBATE_OPTIONS = [
  {
    value: REBATE_0,
    label: REBATE_MAP[REBATE_0]
  },
  {
    value: REBATE_1,
    label: REBATE_MAP[REBATE_1]
  }
]
